#define CMD_OPEN "open"
#define CMD_USER "user"

#define	CMD_LIST "ls"
#define	CMD_NLIST "nlist"
#define	CMD_DIR "dir"
#define	CMD_SYST "system"
#define CMD_GET "get"
#define CMD_PUT "put"
#define CMD_PWD "pwd"
#define CMD_CD "cd"

#define CMD_DEBUG "debug"

#define CMD_CLOSE "close"
#define CMD_QUIT "quit"
#define CMD_BYE "bye"

#define CMD_HASH "hash"
#define CMD_SHELL "!"

#define CMD_ASCII "ascii"
#define CMD_BINARY "binary"

#define CMD_PASV "passive"
#define CMD_TYPE "type"
#define CMD_LCD "lcd"


#define PASSIVE 1
#define ACTIVE 0
#define TYPE_A 1
#define TYPE_I 0
#define MODE_DEBUG 1
#define MODE_NORMAL 0

#define FTP_PORT 21

extern int debug_mode;

void debug(char *msg) {
	if (debug_mode == MODE_DEBUG) {
		printf("--->%s\n", msg);
	}
}
